package com.yjr.client1;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@ServletComponentScan //@WebFilter 拦截所需要用到的注解
@SpringBootApplication
//@EnableDiscoveryClient
@ComponentScan("com.yjr")
@MapperScan({"com.yjr.client1.mapper", "com.yjr.client1.management.*.*.mapper", "com.yjr.client1.management.*.mapper"})
@EnableAspectJAutoProxy(exposeProxy = true) //开启AOP，为true 的话使用cglib,为false的话使用java的Proxy,默认为false ，为了防止自调用，监听不到AOP
public class Client1Application {

    public static void main(String[] args) {
        SpringApplication.run(Client1Application.class, args);
    }

}
